package com.designPattern.responsibilityChain;

/**
 * @Auther: zwg
 * @Date: 2019/2/20 14:31
 * @Description:
 */
public class Test {

    public static void main(String[] args) {
        Support noSupport = new NoSupport("noSupport");
        Support limitSupport = new LimitSupport("limitSupport", 200);
        Support oddSupport = new OddSupport("oddSupport");
        Support sprcialSupport = new SpecialSupport("sprcialSupport", 400);
        noSupport.setNext(limitSupport).setNext(oddSupport).setNext(sprcialSupport);
        for (int i=0;i<500;i++){
            noSupport.support(i);
        }
    }



}
